<include file="Public:header" />
<include file="Public:leftside" />
<link rel="stylesheet" type="text/css" href="/Store/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="/Store/css/cuoxiao.css"/>
<style>
.hide_m{display: none}
.modal-infp-style{width:90%;margin:10px auto;}
.modal-infp-style table{width:100%;}
.modal-infp-style table tr td{border: 1px solid #e6e6e6; padding: 10px;}
.modal {width: 800px;height: 420px;}
.modal-dialog{padding: 0;}
.pagination a {
    display: block;
    float: left;
    border: 1px solid #eee;
    padding: 2px 4px;
    margin: 0 2px;
}
.pagination span {
    display: block;
    float: left;
    border: 1px solid #eee;
    padding: 2px 4px;
    margin: 0 2px;
    background: #65bd77;
    color: #fff;
}
</style>
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb" style="margin: 0;">
			<li> <i class="icon-home home-icon"></i> <a href="/">首页</a> </li>
			<li class="active">拼团管理</li>
		</ul>

	</div>
	<div class="page-content" style="padding:0;">
    <form method="post" class="js-ajax-form" action="{:U('shop/pt_shop_order')}">
      <div class="table-actions" style="margin: 10px 0;">
        <button type="submit" class="btn btn-sm btn-primary js-ajax-submit">排序</button><span style="font-size: 12px;color: red;"> &nbsp;(排序越大,位置越往前)</span>
       </div>
	<div class="listContent" style="margin: 10px 0 0 0;">
    	<table class="table table-striped table-bordered table-hover" width="100%" border="0" cellpadding="0" cellspacing="0" >
            <thead>
        	<tr class="f_black bg_gray">
              	<th style="width: 50px;" align="center">排序</th>
				<th style="width: 50px;" align="center">ID</th>
                <th style="width: 30%;">商品名称</th>
               	<th>拼团人数</th>
                <th>限购</th>
                <th>价格（原价/售价/拼团价）</th>
                <th>拼团开始时间</th>
                <th>拼团结束时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
          
            	<foreach name="rs" item="vo">
	            <tr class="list" >
            		<td><input name="listorders[{$vo.id}]" type="text" value="{$vo['tuan_order']}" class="input input-order valid" aria-invalid="false" style="width:50px;"></td>
                	<td>{$vo.id}</td>
		            <td style="text-align:left;">{$vo.title}</td>
		            <td>{$vo.tuan_num}</td>
		            <td>{$vo.tuan_buynum}</td>
		            <td>{$vo.oprice}/{$vo.price}/{$vo.tuan_price}</td>
		            <td>{:date('Y-m-d H:i:s',$vo['tuanz_endtime'])}</td>
		            <td>{:date('Y-m-d H:i:s',$vo['tuanz_endtime'])}</td>
		            <td>
		            	<a href="{:U('Shop/add',array('id'=>$vo['id']))}">编辑</a>
		            </td>
		           
	            </tr>
	            </foreach>
	        
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
       </div>
   </div>
</div>



<include file="Public:footer" />